﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EF_Model
{
    public class UnitOfWork
    {
        DatabaseContext _db;
        public UnitOfWork(DatabaseContext db)
        {
            _db = db;
        }

        public bool Commit()
        {
            bool result = ((_db.SaveChanges() > 0)? true:false);
            return result;
        }
    }
}
